home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20041116-20060924 / 000347_fdc@columbia.edu_Thu May 11 15:44:57 2006.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Path: newsmaster.cc.columbia.edu!not-for-mail
  2. From: Frank da Cruz <fdc@columbia.edu>
  3. Newsgroups: comp.protocols.kermit.misc
  4. Subject: Re: Script compiling / encrypting?
  5. Date: 11 May 2006 19:44:44 GMT
  6. Organization: Columbia University
  7. Lines: 26
  8. Message-ID: <slrne6751c.r56.fdc@sesame.cc.columbia.edu>
  9. References: <1147371315.638050.245860@j73g2000cwa.googlegroups.com>
  10. Reply-To: fdc@columbia.edu
  11. NNTP-Posting-Host: sesame.cc.columbia.edu
  12. X-Trace: newsmaster.cc.columbia.edu 1147376684 20079 128.59.59.56 (11 May 2006 19:44:44 GMT)
  13. X-Complaints-To: postmaster@columbia.edu
  14. NNTP-Posting-Date: 11 May 2006 19:44:44 GMT
  15. User-Agent: slrn/0.9.8.0 (SunOS)
  16. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:15604
  17.  
  18. On 2006-05-11, quertyq <quertyq@hotmail.com> wrote:
  19. : Is there any way that I can compile, encrypt, or hide Kermit scripting
  20. : so that the end user does not see the code?
  21. :
  22. There is no Kermit script compiler.  Encryption, of course, is a possibility
  23. but you would have to decrypt the script before use, which would require
  24. entry or storage of a key in the clear, which would defeat the purpose.
  25.  
  26. In Unix, you might think you could give the script a "kerbang line" and
  27. execute-but-not-read permission, but this doesn't work because then Kermit
  28. itself can't read the script, just like what happens with shell scripts.
  29.  
  30. Anyway, before Kermit can execute commands, it has to receive them in clear
  31. text.  Even if the script itself were hidden from the user, it would still
  32. be possible to SET TAKE ECHO ON, SET MACRO ECHO ON, and/or LOG DEBUG to
  33. see the commands that are being executed.
  34.  
  35. Offhand, the only solution I can think of would be to write the script as
  36. a macro and then build it into the Kermit binary itself (you can see some
  37. examples of predefined macros in ckuus5.c), then set the binary execute-only.
  38. And remove the SET MACRO ECHO ON and LOG DEBUG commands!
  39.  
  40. Maybe if you explain why you don't want the user to see the code, another
  41. approach can be suggested.
  42.  
  43. - Frank